package pool;

/**
 * 拒绝策略
 *
 * @author yezhiqiu
 * @date 2021/10/02
 */
@FunctionalInterface
public interface RejectedExecutionHandler<T> {

    /**
     * 拒绝
     *
     * @param blockingQueue 阻塞队列
     * @param task          任务
     */
    void reject(BlockingQueue<T> blockingQueue, T task);

}
